package com.hxzy.controller.login.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Desc 描述
 * @Author: admin
 * @Date: 2023/08/16/10:26
 */
@Getter
@Setter
@ToString
@ApiModel(value = "登录模型")
public class LoginReq {

    @ApiModelProperty(value = "账号",required = true )
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码",required = true )
    @NotBlank(message = "密码不能为空")
    @Length(min = 4,max = 20,message = "密码长度在4-20个字符之间")
    private String password;

    @ApiModelProperty(value = "手机号",required = true )
    private String mobile;


}
